<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>

<div class="col-xs-12">
    <form:form commandName="taskNewFilter" cssClass="form-horizontal" role="form">
        <div class="form-group">
            <label class="col-sm-2 control-label no-padding-right" for="taskName">任务名称</label>
            <div class="col-sm-3">
                <input type="text" name="taskName" id="taskName" placeholder="任务名称"
                       class="form-control">
            </div>
            <label class="col-sm-2 control-label no-padding-right" for="categoryId">任务类型</label>
            <div class="col-sm-3">
                <select name="categoryId" id="categoryId" class="form-control">
                    <option value="">点击选择</option>
                    <option value="01">会议纪要</option>
                    <option value="02">省市县为民办实事</option>
                    <option value="03">省市县政府工作报告</option>
                    <option value="04">政协提案办理</option>
                    <option value="05">县长批示件</option>
                    <option value="06">人大建议办理</option>
                    <option value="07">文件办理告知单</option>
                    <option value="08">县委交办事项</option>
                    <option value="09">其他事项</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label no-padding-right" for="dateTimeStart">办理时限开始</label>
            <div class="col-sm-3">
                <input type="text" name="dateTimeStart" id="dateTimeStart" placeholder="办理时限开始" class="form-control date-picker" />
            </div>
            <label class="col-sm-2 control-label no-padding-right" for="dateTimeEnd">办理时限结束</label>
            <div class="col-sm-3">
                <input type="text" name="dateTimeEnd" id="dateTimeEnd" placeholder="办理时限结束" class="form-control date-picker" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label no-padding-right" for="operator">督查人</label>
            <div class="col-sm-3">
                <input type="text" name="operator" id="operator" placeholder="督查人"
                       class="form-control">
            </div>
            <label class="col-sm-2 control-label no-padding-right" for="type">任务状态</label>
            <div class="col-sm-3">
                <select name="type" id="type" class="form-control">
                    <option value="">点击选择</option>
                    <option value="0">待签收</option>
                    <option value="1">待反馈</option>
                    <option value="2">已反馈</option>
                    <option value="3">办结</option>
                    <option value="4">未办结</option>
                    <option value="5">逾期</option>
                </select>
            </div>
        </div>

    </form:form>
</div>
<script type="text/javascript">
    jQuery(function ($) {
        $('.date-picker').datepicker({
            inline: true,
            format: "yyyy-mm-dd",
            autoclose: true,
            todayHighlight: true,
            language: 'cn'
        })
        //show datepicker when clicking on the icon
            .next().on(ace.click_event, function () {
            $(this).prev().focus();
        });
    });
</script>